.class public Lframent/FramentMerchant;
.super Landroid/support/v4/app/Fragment;
.source "FramentMerchant.java"


# static fields
.field public static h:Landroid/os/Handler;


# instance fields
.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private helper:Ldbclass/DBOpenHelper;

.field ilistcx:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/Imagetype;",
            ">;"
        }
    .end annotation
.end field

.field public imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field imgid:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private instroInfo:Ljava/lang/String;

.field isb:Lbean/Imagetype;

.field listcx:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private logo:Landroid/widget/ImageView;

.field private lv:Landroid/widget/ListView;

.field m:Lmyapp/MyApp;

.field private rb:Landroid/widget/RatingBar;

.field private report:Landroid/widget/TextView;

.field private rl:Landroid/widget/RelativeLayout;

.field sb:Lbean/ShopBean;

.field shopid:Ljava/lang/String;

.field private shopname:Ljava/lang/String;

.field private tv_addr:Landroid/widget/TextView;

.field private tv_det:Landroid/widget/TextView;

.field private tv_name:Landroid/widget/TextView;

.field private tv_notic:Landroid/widget/TextView;

.field private tv_qs:Landroid/widget/TextView;

.field private tv_time:Landroid/widget/TextView;

.field private view:Landroid/view/View;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 64
    const/4 v0, 0x0

    sput-object v0, Lframent/FramentMerchant;->h:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 56
    invoke-direct {p0}, Landroid/support/v4/app/Fragment;-><init>()V

    .line 60
    iput-object v0, p0, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    .line 70
    iput-object v0, p0, Lframent/FramentMerchant;->cursor:Landroid/database/Cursor;

    .line 73
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentMerchant;->instroInfo:Ljava/lang/String;

    .line 56
    return-void
.end method

.method static synthetic access$0(Lframent/FramentMerchant;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lframent/FramentMerchant;->logo:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$1(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->tv_name:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$10(Lframent/FramentMerchant;)Landroid/view/View;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$11(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->report:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$12(Lframent/FramentMerchant;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lframent/FramentMerchant;->shopname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$13(Lframent/FramentMerchant;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 73
    iput-object p1, p0, Lframent/FramentMerchant;->shopname:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$14(Lframent/FramentMerchant;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 73
    iput-object p1, p0, Lframent/FramentMerchant;->instroInfo:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->tv_qs:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$3(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->tv_addr:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$4(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->tv_time:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$5(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->tv_notic:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$6(Lframent/FramentMerchant;)Landroid/widget/RatingBar;
    .locals 1

    .prologue
    .line 59
    iget-object v0, p0, Lframent/FramentMerchant;->rb:Landroid/widget/RatingBar;

    return-object v0
.end method

.method static synthetic access$7(Lframent/FramentMerchant;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lframent/FramentMerchant;->tv_det:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$8(Lframent/FramentMerchant;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lframent/FramentMerchant;->instroInfo:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lframent/FramentMerchant;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lframent/FramentMerchant;->lv:Landroid/widget/ListView;

    return-object v0
.end method

.method private initview()V
    .locals 2

    .prologue
    .line 220
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c009b

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->tv_name:Landroid/widget/TextView;

    .line 221
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c0047

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->tv_qs:Landroid/widget/TextView;

    .line 222
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c01aa

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->tv_addr:Landroid/widget/TextView;

    .line 223
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c01ac

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->tv_time:Landroid/widget/TextView;

    .line 224
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c01ad

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->tv_notic:Landroid/widget/TextView;

    .line 225
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c01af

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->tv_det:Landroid/widget/TextView;

    .line 226
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c009d

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lframent/FramentMerchant;->logo:Landroid/widget/ImageView;

    .line 227
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c0199

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RatingBar;

    iput-object v0, p0, Lframent/FramentMerchant;->rb:Landroid/widget/RatingBar;

    .line 228
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c01ae

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lframent/FramentMerchant;->lv:Landroid/widget/ListView;

    .line 229
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c0270

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lframent/FramentMerchant;->rl:Landroid/widget/RelativeLayout;

    .line 230
    iget-object v0, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v1, 0x7f0c00a7

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lframent/FramentMerchant;->report:Landroid/widget/TextView;

    .line 231
    return-void
.end method

.method public static seth(Landroid/widget/ListView;)V
    .locals 7
    .param p0, "listView"    # Landroid/widget/ListView;

    .prologue
    const/4 v6, 0x0

    .line 238
    if-nez p0, :cond_1

    .line 255
    :cond_0
    :goto_0
    return-void

    .line 240
    :cond_1
    invoke-virtual {p0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v1

    .line 241
    .local v1, "listAdapter":Landroid/widget/ListAdapter;
    if-eqz v1, :cond_0

    .line 245
    const/4 v4, 0x0

    .line 246
    .local v4, "totalHeight":I
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v5

    if-lt v0, v5, :cond_2

    .line 251
    invoke-virtual {p0}, Landroid/widget/ListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 253
    .local v3, "params":Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {p0}, Landroid/widget/ListView;->getDividerHeight()I

    move-result v5

    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v6

    add-int/lit8 v6, v6, -0x1

    mul-int/2addr v5, v6

    add-int/2addr v5, v4

    .line 252
    iput v5, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 254
    invoke-virtual {p0, v3}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 247
    .end local v3    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_2
    const/4 v5, 0x0

    invoke-interface {v1, v0, v5, p0}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 248
    .local v2, "listItem":Landroid/view/View;
    invoke-virtual {v2, v6, v6}, Landroid/view/View;->measure(II)V

    .line 249
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    add-int/2addr v4, v5

    .line 246
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method


# virtual methods
.method public getShopSource()Z
    .locals 1

    .prologue
    .line 258
    new-instance v0, Lframent/FramentMerchant$2;

    invoke-direct {v0, p0}, Lframent/FramentMerchant$2;-><init>(Lframent/FramentMerchant;)V

    .line 319
    invoke-virtual {v0}, Lframent/FramentMerchant$2;->start()V

    .line 320
    const/4 v0, 0x0

    return v0
.end method

.method public getShopSource1()Z
    .locals 1

    .prologue
    .line 325
    new-instance v0, Lframent/FramentMerchant$3;

    invoke-direct {v0, p0}, Lframent/FramentMerchant$3;-><init>(Lframent/FramentMerchant;)V

    .line 406
    invoke-virtual {v0}, Lframent/FramentMerchant$3;->start()V

    .line 407
    const/4 v0, 0x0

    return v0
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .param p1, "inflater"    # Landroid/view/LayoutInflater;
    .param p2, "container"    # Landroid/view/ViewGroup;
    .param p3, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 83
    const v3, 0x7f030047

    const/4 v4, 0x0

    invoke-virtual {p1, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    iput-object v3, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    .line 84
    invoke-direct {p0}, Lframent/FramentMerchant;->initview()V

    .line 85
    invoke-virtual {p0}, Lframent/FramentMerchant;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    invoke-virtual {v3}, Landroid/support/v4/app/FragmentActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    .line 86
    invoke-virtual {p0}, Lframent/FramentMerchant;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    invoke-virtual {v3}, Landroid/support/v4/app/FragmentActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 87
    .local v0, "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lframent/FramentMerchant;->shopid:Ljava/lang/String;

    .line 88
    new-instance v3, Ldbclass/DBOpenHelper;

    invoke-virtual {p0}, Lframent/FramentMerchant;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-direct {v3, v4}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lframent/FramentMerchant;->helper:Ldbclass/DBOpenHelper;

    .line 89
    iget-object v3, p0, Lframent/FramentMerchant;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    iput-object v3, p0, Lframent/FramentMerchant;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 91
    iget-object v3, p0, Lframent/FramentMerchant;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 92
    iget-object v3, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v4, 0x7f0c01a9

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 93
    .local v1, "iv_addr":Landroid/widget/ImageView;
    const v3, 0x7f02000d

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 95
    iget-object v3, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    const v4, 0x7f0c01ab

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 96
    .local v2, "iv_time":Landroid/widget/ImageView;
    const v3, 0x7f020024

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 100
    .end local v1    # "iv_addr":Landroid/widget/ImageView;
    .end local v2    # "iv_time":Landroid/widget/ImageView;
    :cond_0
    invoke-virtual {p0}, Lframent/FramentMerchant;->getShopSource()Z

    .line 101
    invoke-virtual {p0}, Lframent/FramentMerchant;->getShopSource1()Z

    .line 103
    new-instance v3, Lframent/FramentMerchant$1;

    invoke-direct {v3, p0}, Lframent/FramentMerchant$1;-><init>(Lframent/FramentMerchant;)V

    sput-object v3, Lframent/FramentMerchant;->h:Landroid/os/Handler;

    .line 214
    iget-object v3, p0, Lframent/FramentMerchant;->view:Landroid/view/View;

    return-object v3
.end method
